package com.xiaoshuidi.cloud.module.report.dal.mapper.report;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import com.xiaoshuidi.cloud.module.report.controller.finance.vo.DepositOwnerReqVO;
import com.xiaoshuidi.cloud.module.report.dal.DO.report.ReportOwnerDepositDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
@InterceptorIgnore(tenantLine = "true")
public interface ReportOwnerDepositMapper extends BaseMapperX<ReportOwnerDepositDO> {


    @Select("select * from report_owner_deposit where handle_flag = 0")
    List<ReportOwnerDepositDO> selectListUnHandel();

    List<ReportOwnerDepositDO> selectListForPage(@Param("req") DepositOwnerReqVO reqVO);

    List<ReportOwnerDepositDO> selectListForExport(@Param("req") DepositOwnerReqVO reqVO);

    long countListForPage(@Param("req") DepositOwnerReqVO reqVO);

    List<ReportOwnerDepositDO> selectTotalAmount(@Param("req") DepositOwnerReqVO reqVO);

    void updateByOrderIds(@Param("list") List<Long> list);

}
